using System;
using System.Collections.Specialized;
using System.Net.Mail;
namespace MailClient
{
	public class MailMessage : System.Net.Mail.MailMessage
	{
		#region CTOR
		public MailMessage (string from, string to) :
			base (from, to)
		{ }

		public MailMessage (string from, string to, string subject, string body) :
			base (from, to, subject, body)
		{ }

		public MailMessage ()
		{ }

		public MailMessage (System.Net.Mail.MailAddress from, System.Net.Mail.MailAddress to) :
			base (from, to)
		{ }
		#endregion
		#region Methods
		public string SenderAddress {
			get { return base.Sender.Address;
			}
		}
		public string SenderDisplayName {
			get { return base.Sender.DisplayName;
			}
		}
		public string InternetMessageHeaders {
			get {
				string result = string.Empty;
				var Header = base.Headers;
				foreach (var item in Header ) {
					result += item.ToString() + Environment.NewLine;
				}
				return result;
			}
		}
	}
	#endregion
	
}


